home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / FLASH004.422 < prev    next >
Text File  |  1993-03-20  |  7KB  |  132 lines

  1. FLASH004.MOD - Sound Blaster tells you user's chat reason..
  2. Josh Weide #267 @19911
  3. Tuesday, March 16, 1993   7:22 pm
  4. ┌────────────────────────────────────────────────────────────────────────────┐
  5. │ Mod Name: FLASH004.MOD                   Date: 3/16/93                     │
  6. │ Mod Author: Flashman #1 @9930 WWIVNet                                      │
  7. │ Difficulty: Even George Bush couldn't screw THIS ONE up.                   │
  8. │ WWIV Version: 4.22                                                         │
  9. │ Files Affected: bbs.c                                                      │
  10. │ Description: A Sound Blaster Pro chat call that makes the computer say the │
  11. │              words, "User requests chat because" then the chat reason.     │
  12. └────────────────────────────────────────────────────────────────────────────┘
  13.   I offered this one a little while ago and I got a big response, so here it
  14. is. The actual mod to the source code is extremely minute, as most of it uses
  15. an external file which I am supplying the batch file source code and the .COM
  16. file for.
  17.   This mod uses Sound Blaster Pro's READ utility to summon the sysop for chat.
  18. the mod will write the user's chat reason to a file and then have the SBTALKER
  19. voice driver load, read the reason, then remove the driver. Don't worry about
  20. this process taking long. The whole procedure is very quick with no noticable
  21. delay. The voice will end up saying, "User requests chat because" followed by
  22. the chat reason the user typed in. Snappy, eh? Here's the mod.
  23.  
  24. DISCLAIMER: Hey, read the level of difficulty at the top of this thing. If you
  25. screw it up, would you even want to ADMIT IT?!? I didn't think so.
  26.  
  27. KEY: /* ++ */ Add this line
  28.      /* && */ Existing line
  29.  
  30. STEP ONE: Load bbsutl.c and find void reqchat(). Search for and add the
  31.           following code:
  32.  
  33. /* && */      prt(2,get_string(598)); /* "Reason: " */
  34. /* && */      inputl(s,70);
  35. /* && */      if (s[0]) {
  36. /* && */        chatcall=1;
  37. /* ++ */        sprintf(s1,"echo User requests chat because  %s > chatreas.txt",s);
  38. /* ++ */        system(s1);
  39. /* ++ */        nl();
  40. /* ++ */        pl("Paging sysop by way of the Sound Blaster Pro.");
  41. /* ++ */        system("chat");
  42. /* && */        sprintf(chatreason,"%s: %s",get_stringx(1,33), s); /* "Chat" */
  43. /* && */        nl();
  44. /* && */        sysoplog(chatreason);
  45.  
  46.  
  47. STEP TWO: Below is a uuencoded version of the file you'll need called
  48.          CHAT.COM. This file assumes 2 things:
  49.          
  50.          1.) All your SBTALKER files including SBTALKER, READ, and REMOVE
  51.              are in the directory called \SBPRO\SBTALKER. This is the
  52.              Creative Labs default directory for these files so chances
  53.              are you're in good shape.
  54.  
  55.          2.) Your main WWIV directory is called \WWIV.
  56.  
  57. If either of these are false, I have provided the source code to this .COM
  58. file right after the uuencoded file, so you may make the appropriate changes
  59. under 2 conditions. 1.) You MUST compile the file to an executable file, and
  60. 2.) The file you make MUST be named CHAT.COM. Using this in batch file form
  61. will not return control of the system back to the BBS thus freezing the BBS
  62. until reboot.
  63.  
  64. When your CHAT.COM file is ready, place it in your main WWIV directory.
  65.  
  66. *** Here is the UUencoded version of CHAT.COM ***
  67.  
  68. --------------------------------------------------------------------------------
  69.  
  70. section 1 of uuencode 2.8 of file chat.com    by R.E.M.
  71.  
  72. begin 644 chat.com
  73. MZSJ00V]M<&EL960@8GD@0D%4,D5814,@,2XU#0I00R!-86=A>FEN92#^($1O)
  74. M=6=L87,@0F]L:6YG#0H:_+U<`8MN`(NF`@"+G@0`M$K-(:$L`(F&&@"+G@``R
  75. M_^.]!,>&$`#__XO6,\FX`CP+_W0"_L3-(7(IB]@+_W0+N`)",]*+RLTA<AB)O
  76. MGA(`4[1%NP$`S2&)AA``N0$`6[1&S2'#P`$[`E/H``!;B_Y/BH8>`!Y0_U?Z-
  77. M+O]7^%@?B(8>`%O#4^@@``!$54U-62`@($9#0@``````1%5-35D@("!&0T(`*
  78. M````6QX&B:8"`%=6B_=&C3^X`RG-(8U_$+@#*<TA7E\.C5<04@Z-%U(.5RZ+K
  79. MAAH`4(O<N`!+B];-(;U<`2Z+;@",R_J.TXNF`@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O7'-B=&%L:V5R("`@5
  96. M("`@#0!N=6P`&B]#($-$7'-B<')O7'-B=&%L:V5R("`@("`@#0!N=6P`4T)42
  97. M04Q+15(`$2`O9$),05-415(@("`@("`-`&-H871R96%S+G1X=`!N=6P`4D5!F
  98. M1``6("`@("`@("`@("`@("`@("`@("`@#0!N=6P`4D5-3U9%``<@("`@("`-O
  99. M`&YU;``0+T,@0T1<=W=I=B`@("`@(`T`C;8@`+\``+A>`?_0C;8E`+BC`?_0(
  100. MN)<"_]"-ME,`OP``N%X!_]"-ME@`N*,!_]"XEP+_T(VV=`"_``"X7@'_T(VV%
  101. M>`"-OH(`N+P"_]"XEP+_T(VVE`"X?03_T(VVH0"_``"X7@'_T(VVI0"-OJL`A
  102. MN+P"_]"XHP3_T+B7`O_0C;;"`+\``+A>`?_0C;;&`(V^S@"XO`+_T+B7`O_0R
  103. ?C;;6`+\``+A>`?_0C;;;`+BC`?_0N)<"_]"X`$S-(4S-+
  104. ``
  105. end
  106. size    1381
  107.  
  108. --------------------------------------------------------------------------------
  109. If you'll be modifying the batch file and recompiling, here's CHAT.BAT. You
  110. only need this file if the conditions for CHAT.COM listed below aren't met and
  111. you need to change something.
  112. --------------------------------------------------------------------------------
  113.  
  114. @echo off
  115. copy chatreas.txt  \sbpro\sbtalker > nul
  116. cd\sbpro\sbtalker > nul
  117. sbtalker /dBLASTER > nul
  118. read <chatreas.txt > nul
  119. remove > nul
  120. cd\wwiv
  121.  
  122. --------------------------------------------------------------------------------
  123.  
  124. STEP THREE: Compile the BBS and try 'er out. Works like a charm! Just remember
  125.             you must have your sound drivers loaded for it to work.. Duh!
  126.  
  127. That's it! An easy mod if I do say so myself. If you use this, let me know.
  128. I can be reached at WWIVNet 1@9930 for questions or comments or to let me
  129. know of your use of my mod. Thanks.
  130.  
  131.                                                 - Flashman -
  132.